package com.yunzhi.net.entity;

import java.io.Serializable;

/**
 * Created by zjp on 2018/3/22 09:37.
 * 返回的数据格式是固定的，有code，msg和实体类data,
 * 下面的T相当于data,用的时候可以当泛型传
 */

public class BaseResponse<T> implements Serializable {

    /**
     * code : 0
     * msg :
     * data : {"login_status":"0","meid":"867080028338527","v":"41","channel":"common","access_token":"34ac472b7f15f005efdde35ec436441cb4fc2396"}
     */

    private int code;
    private String message;
    private String success;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
